package com.sanjiahantang.youjiarole.module.goods.beans;

import com.google.gson.Gson;
import com.sanjiahantang.youjiarole.base.BaseBean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by zy on 2017/10/24.
 */

public class GoodsAttrBean extends BaseBean {

    private String data;

    public Data getData() {
        return new Gson().fromJson(data,Data.class);
    }

    public void setData(String data) {
        this.data = data;
    }

    public static class Data{
        private List<PropertyMap> propertyMap;
        private List<SkuData> skuData;

        public List<PropertyMap> getPropertyMap() {
            return propertyMap;
        }

        public void setPropertyMap(List<PropertyMap> propertyMap) {
            this.propertyMap = propertyMap;
        }

        public List<SkuData> getSkuData() {
            return skuData;
        }

        public void setSkuData(List<SkuData> skuData) {
            this.skuData = skuData;
        }
    }


    public static class PropertyMap{
        private int titleId;
        private String titleName;
        private List<Item> list;

        public int getTitleId() {
            return titleId;
        }

        public void setTitleId(int titleId) {
            this.titleId = titleId;
        }

        public String getTitleName() {
            return titleName;
        }

        public void setTitleName(String titleName) {
            this.titleName = titleName;
        }

        public List<Item> getList() {
            return list;
        }

        public void setList(List<Item> list) {
            this.list = list;
        }
    }

    public static class Item{
        private int mgpiraId;
        private String mgpiValue;
        private int mgpciId;
        private String propertyName;
        private String createTime;
        private int mgiId;
        private int mgpiId;

        public int getMgpiraId() {
            return mgpiraId;
        }

        public void setMgpiraId(int mgpiraId) {
            this.mgpiraId = mgpiraId;
        }

        public String getMgpiValue() {
            return mgpiValue;
        }

        public void setMgpiValue(String mgpiValue) {
            this.mgpiValue = mgpiValue;
        }

        public int getMgpciId() {
            return mgpciId;
        }

        public void setMgpciId(int mgpciId) {
            this.mgpciId = mgpciId;
        }

        public String getPropertyName() {
            return propertyName;
        }

        public void setPropertyName(String propertyName) {
            this.propertyName = propertyName;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public int getMgiId() {
            return mgiId;
        }

        public void setMgiId(int mgiId) {
            this.mgiId = mgiId;
        }

        public int getMgpiId() {
            return mgpiId;
        }

        public void setMgpiId(int mgpiId) {
            this.mgpiId = mgpiId;
        }
    }

    public static class SkuData implements Serializable{
        private String mgpiraId;
        private String mgpiValue;
        private double skuPrice;
        private String resultPrice;
        private String skuId;
        private int stockCount;

        public String getResultPrice() {
            return resultPrice;
        }

        public void setResultPrice(String resultPrice) {
            this.resultPrice = resultPrice;
        }

        public String getMgpiraId() {
            return mgpiraId;
        }

        public void setMgpiraId(String mgpiraId) {
            this.mgpiraId = mgpiraId;
        }

        public String getMgpiValue() {
            return mgpiValue;
        }

        public void setMgpiValue(String mgpiValue) {
            this.mgpiValue = mgpiValue;
        }

        public double getSkuPrice() {
            return skuPrice;
        }

        public void setSkuPrice(double skuPrice) {
            this.skuPrice = skuPrice;
        }

        public String getSkuId() {
            return skuId;
        }

        public void setSkuId(String skuId) {
            this.skuId = skuId;
        }

        public int getStockCount() {
            return stockCount;
        }

        public void setStockCount(int stockCount) {
            this.stockCount = stockCount;
        }
    }
}
